import instance from "./require";

//获取分类数据数据
export let http_gettypelist = () => {
    return instance.get('/typelist')
}

//获取右侧商品数据
export let http_getshoplist = () => {
    return instance.get('/shoplist')
}

//获取购物车数据
export let http_getcarlist = () => {
    return instance.get('/carlist')
}

//添加购物车数据
export let http_addcarlist = (obj) => {
    return instance.post('/carlist', obj)
}

//编辑右侧商品数据
export let http_updateshoplist = (obj) => {
    return instance.patch(`/shoplist/${obj.id}`, obj)
}